interface PageOptions{
    page:number;
    pageSize:number;
}
interface User{
    id:string,
    name:string,
    password:string
}
interface ReturnData<T>{
    code:number,
    data:T,
    msg:string
}
export async function getUserList(options:PageOptions):Promise<ReturnData<User[]>>{
    const {page,pageSize}=options;
    const userList:User[]=[
        {
            id:'001',
            name:'orange',
            password:'1912344'
        },
        {
            id:'002',
            name:'orange2',
            password:'1912344'
        },
        {
            id:'003',
            name:'orange3',
            password:'1912345'
        },

    ]
    return {
        code:0,
        data:userList,
        msg:'success'
    }
}
interface UerDetailOptions{
    id:string
}
export async function getUserDetail(options:UerDetailOptions):Promise<ReturnData<User>>{
    const {id}=options;
    const userDetail={
        id:id,
        name:'orange',
        password:'xxxxx'
    }
    return {
        code:0,
        data:userDetail,
        msg:'success'
    }
    
}